Method for obtaining direction of target location through a handset

ABSTRACT

The present invention discloses a method for obtaining the direction of a target location through a handset, which includes: the handset obtains geographical information of a current location and that of the target location, determines a geographical meridian line of the current location and a angle of this geographical meridian line displayed on the screen of the handset; the handset determines the direction from the current location to the target location according to geographical information of the current location and that of the target location, determines an included angle between this direction and the geographical meridian line. According to the included angle and that of the geographical meridian line displayed on its screen, the handset determines the direction displayed on the screen of the handset from the current location to the target location, and displays the direction of the target location on the screen according to the displayed direction. The present invention solves the problem that existing handsets cannot provide the direction of the target location for the user. The user can confirm the direction of the target location through the handset.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of International Application No.PCT/CN2005/000051 filed Jan. 13, 2005. This application claims thebenefit of Chinese patent application nos. CN200410000964.2 filed Jan.17, 2004 and CN200410073713.7 filed Sept. 2, 2004. The disclosures ofthe above applications are incorporated herein by reference.

FIELD

The present disclosure relates to handset technology, more particularlyto a method for obtaining the direction of a target location through ahandset.

BACKGROUND

The statements in this section merely provide background informationrelated to the present disclosure and may not constitute prior art.

At present, handsets such as cell phone and Personal Digital Assistant(PDA) are more and more popular and have become people's indispensabletools to carry along. Accordingly, people are considering whether it ispossible to configure more functions in the handset so that the handsetcan provide better services for users.

A scheme to equip the handset with a direction recognition function hasbeen put forward, which is mainly to configure a digital compass moduleinside the handset to obtain geomagnetism direction data and configure ageomagnetism direction display module to convert the geomagnetism datainto an image displaying data and display the image according to theimage displaying data on a screen of the handset. According to thispatent application, the handset is capable of distinguishing directions,in other words, a user can determine on a geomagnetism direction throughthis handset.

However, the user may not be satisfied with the geomagnetism directiondetermined by the handset. He may also want to further know thedirection from his current location to a certain place. A typicalexample is: when exploring outside, the user needs to frequently acquirethe direction from the current location to a target location. Islamicpeople need to frequently make pilgrimage in the direction of Mecca. Itis very easy to distinguish the direction when it is clear or at afamiliar place, but very difficult when it is cloudy or at an unfamiliarplace. Although the compass can indicate the north direction for theuser, it cannot tell the user the direction from the current location toMecca.

So far, there is no scheme for determining the direction of a certainsite through a handset for the user.

SUMMARY

Therefore, the present invention provides a method for obtaining thedirection of a target location through a handset, so that the user canacquire the direction of the location through the handset. The methodincludes the following steps:

the handset receives geographical information of a current locationtransmitted by other handsets and obtains that of a target location, andfiguring out a geographical meridian line of the current location;

the handset determines a direction from the current location to thetarget location according to the geographical information of the currentlocation and that of the target location, and determines a firstincluded angle between the direction from the current location to thetarget direction and the geographical meridian line of the currentlocation, and then determines a second angle between the geographicalmeridian line of the current location designated direction on the screenof the handset;

according to the first included angle and the second included angle, thehandset figures out a display direction from the current location to thetarget location, and displays the display direction on the screen.

In the present invention, through the handset, the user can obtaingeographical information of the current location and that of the targetlocation, as well as obtain geographical meridian line of the currentlocation, determine a first included angle between the direction fromthe current location and the target location and the geographicalmeridian line, determine a second included angle between geographicalmeridian line and the screen's vertical ordinate, determine a displayangle between the direction of the current location to the targetlocation and the screen's vertical ordinate according to theabove-mentioned first and second included angles, and then displaydirection of the target location in terms of the current locationaccording to the display angle, so that the user can convenientlyconfirm the direction of the target location in terms of currentlocation through the handset at any time.

The scheme of the present invention can implement obtaining geographicalinformation through GPS.

Furthermore, the scheme of the present invention can also presetrelevant geographical information inside the handset or at the networkside, for instance, presetting mapping relation between geographicalidentification and geographical information inside the handset and/orthe network side, so that the handset can obtain correspondinggeographical information according to geographical identificationdirectly through the mapping relation stored in this handset or thenetwork side, comparing with the process of adding a GPS module at theterminal, this process can satisfy low-side user's requirement as wellas save equipment cost.

In the scheme of the present invention, the handset can determine thedirection of a certain location from the current location by obtaininggeographical information of the certain location, determininggeographical meridian line corresponding to this location, direction ofthis geographical meridian line displayed on the screen and geographicalinformation of the target location.

Further areas of applicability will become apparent from the descriptionprovided herein. It should be understood that the description andspecific examples are intended for purposes of illustration only and arenot intended to limit the scope of the present disclosure.

DRAWINGS

The drawings described herein are for illustration purposes only and arenot intended to limit the scope of the present disclosure in any way.

FIG. 1 is a flowchart of an embodiment according to the presentinvention.

DETAILED DESCRIPTION

The following description is merely exemplary in nature and is notintended to limit the present disclosure, application, or uses. Itshould be understood that throughout the drawings, correspondingreference numerals indicate like or corresponding parts and features.

According to an embodiment of the present invention, the method forobtaining the direction of the target location through a handsetcomprises the steps of determining a geographical meridian line of thecurrent location, calculating a first included angle between thegeographical meridian line and a circular art that takes the earth'score as the centre and goes through the current location and the targetlocation, which can be also called the included angle between thegeographical meridian line and the direction from the current locationand the target location, and figuring out a second included anglebetween the geographical meridian line and a vertical ordinate of thehandset screen, determining a display angle between the direction fromthe current location to a target location and the vertical ordinate ofthe handset screen according to the above-mentioned first and secondincluded angles, and displaying the direction from the current locationto the target location on the handset screen according to the displayangle.

The present invention will be further illustrated in detail hereinafterwith reference to accompanying drawings and specific embodiments.

With reference to FIG. 1, a preferred embodiment of the presentinvention includes the following steps:

Step 101: when the direction of a certain target location is needed, theuser obtains geographical information of the current location and thatof the target location through the handset.

The geographical information hereby should include geographicalcoordinate information (Gs), such as the longitude and the latitude of alocation, so that the handset can perform a corresponding calculationaccordingly.

The handset can obtain geographical information of the current locationthrough GPS, for example, the handset can obtain geographicalinformation of the current location through a GPS module configuredinside the handset. As to mobile terminal equipment, the handset canobtain geographical information of the current location through apositioning function of the network side.

Since configuring a GPS module inside a handset will greatly increasethe cost of the handset, an alternate choice is to establish a mappingrelation table between geographical identifications and geographicalcoordinates inside the handset, so that the handset can find out acorresponding geographical coordinate to a geographical identificationsuch as a structure's name or label, a street name, a park name and soon, according to the mapping relation table. The geographicalidentifications stored in the mapping relation table can also berelevant information of signal cells in a wireless communication system,for instance, the current location area or a cell label of the mobileterminal. In this way, while the handset is roaming, it can obtain thecorresponding location area or cell label information and then obtainthe corresponding geographical information from the mapping relationtable according to the label information. Of course, if the handset canobtain an identifier of the access equipment in wireless communicationsystem, such as the label of Access Point (AP) in Wireless Local AreaNetwork (WLAN) or the information of Base Station (BTS) in wirelesscommunication system, the label information can also be taken as thegeographical identification information.

In practice, the mapping relation table of geographical information canbe set for each city at the network side, wherein the table includesmapping relation between geographical identifications and geographicalcoordinates and can be called a mapping relation bank, so that thehandset can obtain corresponding geographical coordinate informationaccording to the geographical identification from the mapping relationbank at network side. Specifically, this procedure can include: thehandset sends a short message including a geographical identification tonetwork side equipment that stores the mapping relation bank, thenetwork side equipment searches for the corresponding geographicalcoordinate in the stored mapping relation bank according to thegeographical identification and sends the geographical coordinateinformation to the handset by a short message. The network sideequipment can further add a command code to the short message to be sentto the handset, so that the handset can judge according to this commandcode whether the received short message carries the geographicalcoordinate information. Of course, the handset can also directly send acommand to network side equipment that stores the mapping relation bank.The network side equipment determines the corresponding geographicalidentification information according to the current roaming informationsuch as located area and cell, obtains the corresponding geographicalinformation from the stored mapping relation bank according to thegeographical identification information and takes this geographicalinformation as that of the current location of the handset. The cost ofthe handset can be reduced through the above-illustrated process.

A special service command can also be set for the network side, so thatthe handset can obtain the corresponding geographical information fromthe network side by sending a service command that includes thegeographical identification to the network side.

The user can also manually input a piece of geographical information tothe handset. Of course, if the user knows the geographical informationof the current location, the user can also input this geographicalinformation in advance. This geographical information can also betransmitted by other users.

Geographical information of the target location obtained by the handsetcan be input by the user in advance or be transmitted by other users orbe preset by the manufacturer of the handset. Similar to the procedureof obtaining the geographical information of the current location,mapping relations can be stored inside the handset or at the networkside, so that the handset can obtain the corresponding geographicalinformation by interacting with this mapping relation bank, forinstance, by setting the mapping relation between Mecca and geographicallocation in the mapping relation bank at network side. The handset canobtain the corresponding geographical information according to thegeographical name Mecca.

In addition, whether to obtain the geographical information of thecurrent location or that of the target location, it is useful to storemapping relations between some frequently used geographicalidentifications and geographical information inside the handset. Forinstance, as to the current location, since the user's working place andliving place are usually constant, the mapping relation betweengeographical information and relevant information of the handset such asresident cell and adjacent cells etc. can be set inside the handset. Forexample, the user's current living place and working place are usuallyin two different cells or in the same location area, the user can takethese two different cells or this location as the resident cells. As tothe target location, since the user usually needs to search for severaltarget locations constantly, mapping relations between geographicalinformation and these several target locations can be set inside thehandset. Of course, mapping relations between geographical informationand geographical identifications of all possible target locations canalso be set at the network side. Based on such setting, while needing toacquire corresponding geographical information, the handset can judge ifthis geographical information is already stored inside this handsetfirstly, if this geographical information is not stored therein, thehandset can then search for this geographical information at the networkside. Through such setting, the handset is guaranteed to obtain relevantgeographical information while maintaining less data information, so asto prevent accessing the network as much as possible and therefore savethe accessing cost.

Step 102: the handset finds out the geographical meridian line of thecurrent location of the handset.

The geographical meridian line of the handset's current location can bedetermined according to the location and geographical coordinate of theearth's two poles: firstly determining the circle whose center is thecore of earth and that goes through the earth's two poles as well as thecurrent location, and then taking the semicircle determined by thecurrent location and the earth's two poles as the geographical meridianline of the current location of Gs.

Step 103: according to the handset's geographical information of thecurrent location, geographical information of the target location andgeographical meridian line of the current location, the handsetdetermines the direction from the current location to the targetlocation and figures out a first included angle, the first includedangle is the included angle between the direction from the currentlocation to the target location and the geographical meridian line.

While calculating the first included angle, it needs to determine thedirection from the handset's current location to target location for thefirst place. Specifically speaking, according to geographicalinformation of the handset's current location and that of the targetlocation as well as according to coordinate information of the earth'score, a circular section on the earth is uniquely determined, thereinthe handset's current location and target location divide circumferenceof the circular section into two circular arcs, whose lengths can becalculated according to geographical coordinates of the handset'scurrent location and that of target location, based on the shortercircular arc, the direction from the handset's current location to thetarget location along this shorter circular arc is taken as a positivedirection of the target location in terms of the current location.Accordingly, the direction from the handset's current location to targetlocation along the longer circular arc is taken as a negative directionof the target location in terms of the current location.

Of course, the positive direction and negative direction from thehandset's current location to target location can also be obtained byother calculation methods.

Step 104: the handset determines a second included angle of thegeographical meridian line of the current location displayed on thehandset's screen.

Since the direction of the geographical meridian line can be consideredthe same as that of geomagnetism direction, the second included anglecan be determined by calculating the included angle between thegeomagnetism direction and the screen's vertical ordinate. Thus,according to the second included angle as well as the first includedangle, the handset can determine a display angle between the screen'svertical ordinate and the direction from the current located directionto the target location.

Hereby, the separation between the geomagnetism direction and thescreen's vertical ordinate can be figured out by setting a digitalcompass in the handset.

Step 105: according to the first included angle and the second includedangle determined in step 103 and step 104, the handset obtains thedisplay angle and displays the direction from the current location tothe target location displayed on the screen on the screen according tothe display angle.

Specifically speaking, according to the included angle between thegeographical meridian line and the direction from the current locateddirection to the target location, as well as the included angle betweenthe geographical meridian line and the screen's vertical ordinate, thehandset determines the display angle between the screen's verticalordinate and the direction from the current located direction to thetarget location. After that, the handset displays the directionaccording to the display angle between the screen's vertical ordinateand the direction from the current located direction to the targetlocation.

While the handset is used for displaying the direction, adirection-indicating pointer can be preset in the handset, and thedirection-indicating pointer can display the direction of the targetlocation in terms of the current location by taking the screen'svertical ordinate as reference frame. For display convenience, a circlecan also be set in the handset, fixed end of the pointer is located atthe circle's center and the movable end directs to the circle'scircumference. Meanwhile, four direction identifiers, namely the east,west, south and north, can also be set in the handset, and the fourdirection identifiers can be correspondingly displayed on this circle'scircumference according to the above-mentioned second included anglebetween the screen's vertical ordinate and the direction of thegeomagnetism. And then the direction of the target location can beindicated by the direction-indicating pointer, direction identifiers andcircle thereof.

Besides, the current scheme of the present invention can further figureout the distance from current location of the handset to the targetlocation so that the user can acquire more information. The distance canbe in just the positive direction, while the distance in the negativedirection can also be provided.

The above illustration is just a preferable embodiment of the presentinvention and is not used for confining or limiting the protection scopeof the present invention.

1. A method for obtaining a direction of a target location through a handset, comprising: receiving geographical information of a current location transmitted by other handsets and obtaining geographical information of the target location, and determining a geographical meridian line of the current location; determining a direction from the current location to the target location according to the geographical information of the current location and the geographical information of the target location, and determining a first included angle between the direction and the geographical meridian line of the current location, and then determining a second angle between the geographical meridian line of the current location and a designated direction on a screen of the handset; according to the first included angle and the second angle, determining a display direction for the target location and displaying the display direction on the screen.
 2. The method according to claim 1, wherein said obtaining the geographical information of the target location comprises: receiving the geographical information of the target location transmitted by other handsets.
 3. The method according to claim 1, wherein said obtaining the geographical information of the target location comprises: storing first mapping relations between geographical identifications and the geographical information of the target location inside the handset; storing second mapping relations between the geographical identifications and the geographical information of the target location at a network side, according to a geographical identification of the target location, the handset judging whether corresponding geographical information for the geographical identification of the target location exists in the first mapping relations stored inside the handset itself, if the corresponding geographical information exists, obtaining the corresponding geographical information from the first mapping relations stored inside the handset itself; otherwise, the handset getting the corresponding geographical information for the geographical identification of the target location from the second mapping relations stored at the network side; wherein the geographical information of the target location at least comprises geographical coordinate information.
 4. The method according to claim 3, wherein the geographical identification is a signal cell identifier of wireless communications, or a geographical name, or a structure name.
 5. The method according to claim 3, wherein the handset is a mobile station; the geographical identification is a signal cell identifier; and the signal cell identifier is a network equipment or a location area or cell label corresponding to a signal cell.
 6. The method according to claim 3, wherein the handset obtains the corresponding geographical information from the network side by way of short messages or preset service commands.
 7. The method according to claim 1, wherein said determining the geographical meridian line of the current location comprises: determining a circle that goes through both poles of the earth as well as the current location, and taking a semicircle of the circle that goes through both poles of the earth as well as the current location as the geographical meridian line of the current location.
 8. The method according to claim 7, further comprising: pre-configuring a digital compass inside the handset; correspondingly, said determining the second angle comprises: determining a second included angle between a geomagnetism direction of the earth and a vertical ordinate of the screen.
 9. The method according to claim 8, wherein said determining the display direction for the target location displayed on the screen further comprises: according to the first included angle as well as the second angle, determining a display angle, the display angle being an included angle between the direction from the current location to the target location and the vertical ordinate of the screen; determining the display direction for the target location according to the display angle.
 10. The method according to claim 9, further comprising: configuring a direction-indicating pointer for displaying directions; wherein said displaying the display direction for the target location on the screen comprises: taking the vertical ordinate of the screen as a reference frame, the direction-indicating pointer displaying the display direction for the target location on the screen.
 11. The method according to claim 10, further comprising: configuring a direction identifier used for displaying the geomagnetism direction.
 12. The method according to claim 1, wherein said determining the direction from the current location to the target location according to the geographical information of the current location and that of the target location comprises: according to the geographical information of the current location and the geographical information of the target location as well as coordinate information of the earth's core, uniquely determining a circumference upon the earth, determining a short circular arc along the circumference from the current location to the target location, and taking the direction along the short circular arc from the current location to the target location as the direction from current location to the target location.
 13. The method according to claim 1, wherein the handset is a mobile terminal or a Personal Digital Assistant (PDA).
 14. The method according to claim 1, wherein said obtaining the geographical information of the target location comprises: storing mapping relations between geographical identifications and geographical information inside the handset or at network side; and the handset obtaining the geographical information of the target location from the mapping relations according to a geological identification of the target location.
 15. The method according to claim 14, wherein the geographical identification of the target location is a signal cell identifier of wireless communications, or a geographical name, or a structure name.
 16. The method according to claim 14, wherein the handset is a mobile station; wherein the geographical identification of the target location is a signal cell identifier; and wherein the signal cell identifier is a network equipment or a location area or cell label corresponding to a signal cell.
 17. The method according to claim 14, wherein the handset obtains the geographical information of the target location from a network side by way of short messages or service commands that are set for the network side and include the geographical identification of the target location. 